﻿using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;
using System.Windows.Input;
using System.Windows.Navigation;

namespace Tools.ViewModels
{
    public partial class MainViewModel : ViewModelBase
    {
        [ObservableProperty]
        private string pageName;

        public MainViewModel()
        {
            ChangePage("JsonPage.xaml");
        }
        [RelayCommand]
        private void ChangePage(object obj)
        {
            pageName = obj?.ToString();
        }
    }
}
